package com.itheima.api;

public class Demo04 {

    public static void main(String[] args) {
        String s = "abc";
        StringBuilder sb = new StringBuilder("abc");
        System.out.println(s.equals(sb));//false  String equals
        System.out.println(sb.equals(s));//false  Object equals
        System.out.println(s.equals(sb.toString()));
        System.out.println(sb.toString().equals(s));
    }
}
